//
//  Space.m
//  PerfectWorld
//
//  Created by dllo on 16/8/30.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "Space.h"
#import "Img.h"
@implementation Space

- (void)setValue:(id)value forKey:(NSString *)key {
     [super setValue:value forKey:key];
    if ([key isEqualToString:@"img"]) {
        NSMutableArray<Img *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Img * img = [Img modelWithDic:dic];
            [array addObject:img];
        }
        _img = array;
    }
}
@end
